package com.farmer.seckill.mapper;

import com.farmer.seckill.entity.Goods;
import com.farmer.seckill.entity.GoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BaseGoodsMapper {
    long countByExample( GoodsExample example);

    int deleteByExample( GoodsExample example);

    int deleteByPrimaryKey( Long id);

    int insert( Goods record);

    int insertSelective( Goods record);

    List<Goods> selectByExample( GoodsExample example);

    Goods selectByPrimaryKey( Long id);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective( Goods record);

    int updateByPrimaryKey( Goods record);
}